clang tidy optimizes to use parameter passing by const reference. (#209)
authortsteven4 <tsteven4@users.noreply.github.com>
Tue, 26 Jun 2018 22:33:26 +0000 (16:33 -0600)
committerGitHub <noreply@github.com>
Tue, 26 Jun 2018 22:33:26 +0000 (16:33 -0600)
commit4e89aa20f89f78894a1a521b22a4e9ad89f6d1db
tree79fa1bcf2995e1a85b7ab78249e5ddf342c96771
parent7e64756f40aac3edccca2717f5d62d54ec6da785
clang tidy optimizes to use parameter passing by const reference. (#209)

RUN_CLANG_TIDY_FLAGS="-header-filter=.*\\\.h -checks=-*,performance-unnecessary-value-param -fix

The suggestion "parameter '*' is passed by value and only copied once; consider moving
it to avoid unnecessary copies" was not accepted.

The suggestion "the const qualified parameter '*' is copied for each invocation;
consider making it a reference" was accepted.

The suggestion "the parameter '*' is copied for each invocation but only used as a const
reference; consider making it a const reference" was accepted.
14 files changed:
csv_util.cc
csv_util.h
defs.h
gbfile.cc
gbfile.h
gdb.cc
gpx.cc
gtrnctr.cc
maggeo.cc
mynav.cc
pcx.cc
src/core/logging.h
trackfilter.cc
waypt.cc